package com.zoshine.zzg.dao;

import com.zoshine.zzg.base.BaseBean;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 基础dao层接口
 *
 * @author 贾俊峰
 * @time 2017/7/11 20:10
 */
public interface BaseDao<T extends BaseBean> {
    int insert(T t);

    int delete(T t);

    int update(T t);

    T selectOne(T t);

    List<T> selectList(T t);

    Integer selectCount(T t);

    int batchDelete(List<Long> idList);

    int batchInsert(List<T> list);

    int deleteByPrimaryKey(Long id);

    T selectByPrimaryKey(Long id);
}
